package com.qiwenshare.file.controller;

import com.qiwenshare.common.result.RestResult;
import com.qiwenshare.file.api.ArchiveApproveFlowService;
import com.qiwenshare.file.vo.archive.ArchiveFlowVo;
import com.qiwenshare.file.vo.job.JobTreeVo;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

/**
 * 档案审批流程表(ArchiveApproveFlow)表控制层
 *
 * @author makejava
 * @since 2023-09-25 20:27:43
 */
@RestController
@RequestMapping("archiveApproveFlow")
public class ArchiveApproveFlowController{
    /**
     * 服务对象
     */
    @Resource
    private ArchiveApproveFlowService archiveApproveFlowService;

    public static final String CURRENT_MODULE = "审批流程管理";
    
    /**
     * 得到所有的审批流程
     *
     * @return
     */
    @Operation(summary = "得到所有的审批流程列表", description = "得到所有的审批流程列表", tags = {"审批流程管理"})
    @RequestMapping(value = "/list", method = RequestMethod.GET)
    @ResponseBody
    public RestResult<ArchiveFlowVo> selectList() {
        return RestResult.success().data(archiveApproveFlowService.selectList());
    }
}

